"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
// 3.透明单例模式：客户端或则使用者不需要直到单例的具体实现
var Window = (function () {
    var instance3;
    var Window = function () {
        if (!instance3) {
            console.log('3 没有走缓存');
            return instance3 = this;
        }
        ;
        console.log('3 走缓存');
        return instance3;
    };
    return Window;
})();
//3 测试单例
// new (Window as any)().hello();
var w1 = new Window();
var w2 = new Window();
console.log("3 \u4E24\u4E2A\u5B9E\u4F8B\u662F\u5426\u4E00\u6837" + (w1 == w2));
